<?xml version="1.0" encoding="iso-8859-1" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content=
    "application/xhtml+xml; charset=iso-8859-1" />
    <title>
      libgcrypt-1.8.5
    </title>
    <link rel="stylesheet" type="text/css" href="../stylesheets/lfs.css" />
    <meta name="generator" content="DocBook XSL Stylesheets V1.79.1" />
    <link rel="stylesheet" href="../stylesheets/lfs-print.css" type=
    "text/css" media="print" />
  </head>
  <body class="blfs" id="blfs-9.1">
    <div class="navheader">
      <h4>
        Beyond Linux<sup>�</sup> From Scratch <span class="phrase">(System
        V</span> Edition) - Version 9.1
      </h4>
      <h3>
        Chapter&nbsp;9.&nbsp;General Libraries
      </h3>
      <ul>
        <li class="prev">
          <a accesskey="p" href="libdaemon.html" title=
          "libdaemon-0.14">Prev</a>
          <p>
            libdaemon-0.14
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="libgpg-error.html" title=
          "libgpg-error-1.37">Next</a>
          <p>
            libgpg-error-1.37
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="genlib.html" title=
          "Chapter&nbsp;9.&nbsp;General Libraries">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 9.1">Home</a>
        </li>
      </ul>
    </div>
    <div class="sect1" lang="en" xml:lang="en">
      <h1 class="sect1">
        <a id="libgcrypt" name="libgcrypt"></a>libgcrypt-1.8.5
      </h1>
      <div class="package" lang="en" xml:lang="en">
        <h2 class="sect2">
          Introduction to libgcrypt
        </h2>
        <p>
          The <span class="application">libgcrypt</span> package contains a
          general purpose crypto library based on the code used in
          <span class="application">GnuPG</span>. The library provides a high
          level interface to cryptographic building blocks using an
          extendable and flexible API.
        </p>
        <p>
          This package is known to build and work properly using an LFS-9.1
          platform.
        </p>
        <h3>
          Package Information
        </h3>
        <div class="itemizedlist">
          <ul class="compact">
            <li class="listitem">
              <p>
                Download (HTTP): <a class="ulink" href=
                "https://www.gnupg.org/ftp/gcrypt/libgcrypt/libgcrypt-1.8.5.tar.bz2">
                https://www.gnupg.org/ftp/gcrypt/libgcrypt/libgcrypt-1.8.5.tar.bz2</a>
              </p>
            </li>
            <li class="listitem">
              <p>
                Download (FTP): <a class="ulink" href=
                "ftp://ftp.gnupg.org/gcrypt/libgcrypt/libgcrypt-1.8.5.tar.bz2">
                ftp://ftp.gnupg.org/gcrypt/libgcrypt/libgcrypt-1.8.5.tar.bz2</a>
              </p>
            </li>
            <li class="listitem">
              <p>
                Download MD5 sum: 348cc4601ca34307fc6cd6c945467743
              </p>
            </li>
            <li class="listitem">
              <p>
                Download size: 2.9 MB
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated disk space required: 44 MB (with tests; add 8 MB
                for building docs)
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated build time: 0.3 SBU (with docs; add 0.5 SBU for
                tests)
              </p>
            </li>
          </ul>
        </div>
        <h3>
          libgcrypt Dependencies
        </h3>
        <h4>
          Required
        </h4>
        <p class="required">
          <a class="xref" href="libgpg-error.html" title=
          "libgpg-error-1.37">libgpg-error-1.37</a>
        </p>
        <h4>
          Optional
        </h4>
        <p class="optional">
          <a class="xref" href="pth.html" title="Pth-2.0.7">Pth-2.0.7</a> and
          <a class="xref" href="../pst/texlive.html" title=
          "texlive-20190410-source">texlive-20190410</a> (or <a class="xref"
          href="../pst/tl-installer.html" title=
          "install-tl-unx">install-tl-unx</a>)
        </p>
        <p class="usernotes">
          User Notes: <a class="ulink" href=
          "http://wiki.linuxfromscratch.org/blfs/wiki/libgcrypt">http://wiki.linuxfromscratch.org/blfs/wiki/libgcrypt</a>
        </p>
      </div>
      <div class="installation" lang="en" xml:lang="en">
        <h2 class="sect2">
          Installation of libgcrypt
        </h2>
        <p>
          Install <span class="application">libgcrypt</span> by running the
          following commands:
        </p>
        <pre class="userinput">
<kbd class="command">./configure --prefix=/usr &amp;&amp;
make                      &amp;&amp;

make -C doc html                                                       &amp;&amp;
makeinfo --html --no-split -o doc/gcrypt_nochunks.html doc/gcrypt.texi &amp;&amp;
makeinfo --plaintext       -o doc/gcrypt.txt           doc/gcrypt.texi</kbd>
</pre>
        <p>
          The above commands build the documentation in html and plaintext
          formats. If you wish to build alternate formats of the
          documentation, you need <a class="xref" href="../pst/texlive.html"
          title="texlive-20190410-source">texlive-20190410</a> (or <a class=
          "xref" href="../pst/tl-installer.html" title=
          "install-tl-unx">install-tl-unx</a>). Issue the following command:
        </p>
        <pre class="userinput">
<kbd class="command">make -C doc pdf ps</kbd>
</pre>
        <p>
          To test the results, issue: <span class="command"><strong>make
          check</strong></span>.
        </p>
        <p>
          Now, as the <code class="systemitem">root</code> user:
        </p>
        <pre class="root">
<kbd class="command">make install &amp;&amp;
install -v -dm755   /usr/share/doc/libgcrypt-1.8.5 &amp;&amp;
install -v -m644    README doc/{README.apichanges,fips*,libgcrypt*} \
                    /usr/share/doc/libgcrypt-1.8.5 &amp;&amp;

install -v -dm755   /usr/share/doc/libgcrypt-1.8.5/html &amp;&amp;
install -v -m644 doc/gcrypt.html/* \
                    /usr/share/doc/libgcrypt-1.8.5/html &amp;&amp;
install -v -m644 doc/gcrypt_nochunks.html \
                    /usr/share/doc/libgcrypt-1.8.5      &amp;&amp;
install -v -m644 doc/gcrypt.{txt,texi} \
                    /usr/share/doc/libgcrypt-1.8.5</kbd>
</pre>
        <p>
          If you built alternate formats of the documentation, install them
          by issuing the following command as the <code class=
          "systemitem">root</code> user:
        </p>
        <pre class="root">
<kbd class="command">install -v -m644 doc/gcrypt.{pdf,ps,dvi} \
                    /usr/share/doc/libgcrypt-1.8.5</kbd>
</pre>
      </div>
      <div class="commands" lang="en" xml:lang="en">
        <h2 class="sect2">
          Command Explanations
        </h2>
        <p>
          <code class="option">--with-capabilities</code>: This option
          enables libcap2 support. Note that this breaks <a class="xref"
          href="../postlfs/cryptsetup.html" title=
          "cryptsetup-2.0.6">cryptsetup-2.0.6</a>
        </p>
      </div>
      <div class="content" lang="en" xml:lang="en">
        <h2 class="sect2">
          Contents
        </h2>
        <div class="segmentedlist">
          <div class="seglistitem">
            <div class="seg">
              <strong class="segtitle">Installed Programs:</strong>
              <span class="segbody">dumpsexp, hmac256, libgcrypt-config, and
              mpicalc</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Library:</strong>
              <span class="segbody">libgcrypt.so</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Directory:</strong>
              <span class="segbody">/usr/share/doc/libgcrypt-1.8.5</span>
            </div>
          </div>
        </div>
        <div class="variablelist">
          <h3>
            Short Descriptions
          </h3>
          <table border="0" class="variablelist">
            <colgroup>
              <col align="left" valign="top" />
              <col />
            </colgroup>
            <tbody>
              <tr>
                <td>
                  <p>
                    <a id="dumpsexp" name="dumpsexp"></a><span class=
                    "term"><span class=
                    "command"><strong>dumpsexp</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    is a debug tool for S-expressions.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="hmac256" name="hmac256"></a><span class=
                    "term"><span class=
                    "command"><strong>hmac256</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    is a standalone HMAC-SHA-256 implementation used to
                    compute an HMAC-SHA-256 authentication code.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="libgcrypt-config" name=
                    "libgcrypt-config"></a><span class="term"><span class=
                    "command"><strong>libgcrypt-config</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    determines the compile and linker flags that should be
                    used to compile and link programs that use <code class=
                    "filename">libgcrypt</code>.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="mpicalc" name="mpicalc"></a><span class=
                    "term"><span class=
                    "command"><strong>mpicalc</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    is a RPN (Reverse Polish Notation) calculator.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="libgcrypt-lib" name=
                    "libgcrypt-lib"></a><span class="term"><code class=
                    "filename">libgcrypt.so</code></span>
                  </p>
                </td>
                <td>
                  <p>
                    contains the cryptographic API functions.
                  </p>
                </td>
              </tr>
            </tbody>
          </table>
        </div>
      </div>
      <p class="updated">
        Last updated on 2020-02-16 15:15:05 -0800
      </p>
    </div>
    <div class="navfooter">
      <ul>
        <li class="prev">
          <a accesskey="p" href="libdaemon.html" title=
          "libdaemon-0.14">Prev</a>
          <p>
            libdaemon-0.14
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="libgpg-error.html" title=
          "libgpg-error-1.37">Next</a>
          <p>
            libgpg-error-1.37
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="genlib.html" title=
          "Chapter&nbsp;9.&nbsp;General Libraries">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 9.1">Home</a>
        </li>
      </ul>
    </div>
  </body>
</html>
